$(function(){
    ko.bindingHandlers.jqButton = {
        init: function(element, valueAccessor, allBindingsAccessor){
            var options = kjq.utils.getOptions(allBindingsAccessor);
            $(element).button(options);
        },
        update: function(element, valueAccessor){
            var currentValue = valueAccessor();
            $(element).button("option", "disabled", currentValue.enable===false);
        }
    };
});

